<?php

namespace Services\Sys\Models;

use Phalcon\Mvc\Model;

class XhovertValidcode extends Model
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iVCId;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $sSelfPhone;

    /**
     *
     * @var string
     * @Column(type="string", length=10, nullable=true)
     */
    public $iVCode;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateTime;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tExpireTime;

    /**
     *
     * @var integer
     * @Column(type="integer", length=2, nullable=true)
     */
    public $iCodeType;

    /**
     *
     * @var integer
     * @Column(type="integer", length=2, nullable=true)
     */
    public $iState;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHOvert_ValidCode';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhovertValidcode[]|XhovertValidcode
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhovertValidcode
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
